import Vue from "vue";
import VueRouter from "vue-router";

import kaoshi from "@/views/kaoshi/Kaoshi1";
import kaoshi2 from "@/views/kaoshi2/Kaoshi2";
import kaoshi3 from "@/views/kaoshi3/Kaoshi3";
import Lianxi1 from "@/views/lianxi/Lianxi1";
import kaoshi4 from "@/views/kaoshi4/Kaoshi4";
import kaoshi5 from "@/views/kaoshi5/Kaoshi5";
import kaoshi6 from "@/views/kaoshi6/Kaoshi6";
Vue.use(VueRouter);
// 公共路由
export const constantRoutes = [
    {//11月份考试
        path: "/kaoshi",
        name: 'kaoshi',
        component: kaoshi,
    },
    {//12月份考试
        path: "/kaoshi2",
        name: 'kaoshi2',
        component: kaoshi2,
    },
    {//3月份考试
        path: "/kaoshi3",
        name: 'kaoshi3',
        component: kaoshi3,
    },
    {//4月份练习
        path: "/Lianxi1",
        name: 'Lianxi1',
        component: Lianxi1,
    },
    {//4月份考试
        path: "/kaoshi4",
        name: 'kaoshi4',
        component: kaoshi4,
    },
    {//5月份考试
        path: "/kaoshi5",
        name: 'kaoshi5',
        component: kaoshi5,
    },
    {//6月份考试
        path: "/kaoshi6",
        name: 'kaoshi6',
        component: kaoshi6,
    }
]
const router =  new VueRouter({
    mode: "history", // 后台服务器也要做相关配置 https://v3.router.vuejs.org/zh/guide/essentials/history-mode.html#%E5%90%8E%E7%AB%AF%E9%85%8D%E7%BD%AE%E4%BE%8B%E5%AD%90
    routes: constantRoutes,
  });
export default router;
